package com.example.servicetest

import android.app.IntentService
import android.content.Intent
import android.util.Log

class MyIntentService : IntentService("MyIntentService") {
    override fun onHandleIntent(intent: Intent?) {
        Log.d(javaClass.simpleName, "onHandleIntent My thread is ${Thread.currentThread().name}")
        Thread.sleep(5000)
    }

    override fun onDestroy() {
        Log.d(javaClass.simpleName, "onDestroy")
        super.onDestroy()
    }

}